//
//  MessageViewController.m
//  WXWeibo
//
//  Created by apple on 16/5/9.
//  Copyright © 2016年 zic_magic. All rights reserved.
//

#import "MessageViewController.h"
#import "ZCScroll.h"

#import "UIViewExt.h"
#import "FacePannel.h"

#import "MMDrawerController.h"
@interface MessageViewController ()

@end

@implementation MessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"Message";
    
    
//    NSMutableArray *_dataArray = [NSMutableArray array];
//    
//    NSArray *array = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"news_list.json" ofType:nil]] options:NSJSONReadingMutableContainers error:nil];
//    
//    for (NSDictionary *dic in array) {
//        
//        
//        [_dataArray addObject:dic[@"image"]];
//    }
//    ZCScroll *scroll = [[ZCScroll alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 200) withImageArray:_dataArray];
//    
//    
//    [self.view addSubview:scroll];
//    self.automaticallyAdjustsScrollViewInsets = NO;
//    FacePannel *face = [[FacePannel alloc] initWithFrame:CGRectMake(0, 100, 0, 0)];
//    [self.view addSubview:face];
    
}

- (void)viewWillAppear:(BOOL)animated {
    
    [super viewWillAppear:animated];
    MMDrawerController *drawVC = (MMDrawerController *)[UIApplication sharedApplication].keyWindow.rootViewController;
    [drawVC setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeNone];
    
}

- (void)viewDidDisappear:(BOOL)animated {
   
    [super viewDidDisappear:animated];
    MMDrawerController *drawVC = (MMDrawerController *)[UIApplication sharedApplication].keyWindow.rootViewController;
    [drawVC setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
